gtk_window_set_attached_to (GtkWindow *window,
GtkWidget *attach_widget)
{
+ GtkStyleContext *context;
GtkWindowPrivate *priv;
g_return_if_fail (GTK_IS_WINDOW (window));
}
/* Update the style, as the widget path might change. */
- gtk_widget_reset_style (GTK_WIDGET (window));
+ context = gtk_widget_get_style_context (GTK_WIDGET (window));
+ if (priv->attach_widget)
+ gtk_style_context_set_parent (context, gtk_widget_get_style_context (priv->attach_widget));
+ else
+ gtk_style_context_set_parent (context, NULL);
}
/**